package com.hmy.common.timer.retry;

import java.util.concurrent.TimeUnit;

public class SendMsgWithRetryTask extends AbstractRetryTimeTask {
    @Override
    protected void doSome() {
        try {
            TimeUnit.SECONDS.sleep(1);
            System.out.printf("%s正在执行doSome方法\n", taskName);
            throw new RuntimeException("程序运运行时报错");
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
